/* header */
.pg-header {
    height: 48px;
    width: 100%;
    background-color: #2F72AB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 0 40px;
}

.pg-header > .left > a {
    color: white;
    display: inline-block;
    text-decoration: none;
    font-size: large;
}

.pg-header .right {
    position: relative;
    height: 48px;
}

.pg-header .user-info:hover{
    background-color: #307cb7;
}

.pg-header .user-info{
    display: block;
    line-height: 48px;
    color: white;
    text-decoration: none;
    padding: 0 10px;
}

.pg-header .avatar {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin-left: 5px;
}

.pg-header .right:hover .more-info {
    display: block;
}

.pg-header .li-style:hover {
    background-color: #f2f2f2;
}

.pg-header .more-info {
    display: none;
    position: absolute;
    z-index: 1000;
    right: 0;
    background: white;
    margin: 0;
    padding: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);;

}

.pg-header .li-style {
    width: 150px;
    text-align: left;
    background: white;

}

.pg-header .li-style a{
    padding: 8px 20px;
    color:black;
    text-decoration: none;
    display: block;
}

/* menu */
.pg-body {
    background-color: white;
}

.pg-body > .left-menu {
    position: absolute;
    top: 48px;
    left: 0;
    width: 216px;
    bottom: 0;
    background-color: #EAEDF1;
    margin: 0 2px;
}

.left-menu .item {
    background-color: white;
}

.left-menu .first-menu {
    padding: 10px 5px;
    cursor: pointer;
    background: linear-gradient(to top, #efefef, #fafafa);
    box-shadow: inset 0 1px 1px white;
}

.left-menu .sub-menu {
    padding: 5px 20px;
}

.left-menu .hidden {
    display: none;
}

.left-menu .sub-menu a {
    font-size: small;
    text-decoration: none;
}

.left-menu .item .active {
    border-left: 2px solid #2F72AB;
}

.left-menu .item .children {
    border-bottom: 1px solid rgba(119, 119, 119, 0.3);
    border-top: 1px solid rgba(119, 119, 119, 0.3);
}

/* main */
.pg-body > .right-main {
    border-left: 1px solid #e3e3e3;
    position: absolute;
    left: 220px;
    top: 48px;
    right: 0;
    bottom: 0; /* 应该是先定div大小及其他属性，再渲染文字，所以bottom找的是渲染文字前的<html>的底部 */
    overflow: scroll; /* 关键属性：溢出时滚动 */
}

.pg-body .right-main .main-content{
    margin: 0 20px;
}